package com.atguigu.boot.config;

import com.atguigu.boot.MVCMainType;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        // 这里要传入的是我们的主启动类的 Class 对象
        return application.sources(MVCMainType.class);
    }
}